﻿<UserControl x:Class="TS3ServerManager.Controls.ServerControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:TS3ServerManager.Controls"
    MinHeight="300" MinWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <Controls:MainAreaControl x:Name="MainArea" Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
 
        <StatusBar Grid.Row="1">
            <StatusBar.ItemsPanel>
                <ItemsPanelTemplate>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                    </Grid>
                </ItemsPanelTemplate>
            </StatusBar.ItemsPanel>
            <StatusBarItem>
                <TextBlock Name="LastStatusMessageeTextBlock"/>
            </StatusBarItem>
            <StatusBarItem Grid.Column="1" HorizontalAlignment="Right" Margin="5,0,0,0">
                <Button Name="ConnectionStateButton" Click="ConnectionStateButton_Click" IsEnabled="False">
                    <Ellipse Name="ConnectionStateEllipse" Fill="Red" Height="15" Width="15" StrokeThickness="1" Stroke="Black"/>
                </Button>
            </StatusBarItem>
        </StatusBar>
    </Grid>
</UserControl>
